package com.hk.commons.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.annotation.Generated;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * 
<p>Title:Fundnavhistory </p>
<p>Description:基金净值历史 </p>
<p>Company:HK </p> 
@author Sam
@date 2016年2月17日上午10:20:07
 */
@Entity
@Table(name = "t_fund_nav_history")
public class Fundnavhistory implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2751747278189671277L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Integer id;

	/**
	 * 净值日期
	 */
	private String navDate;

	/**
	 * 基金代码
	 */
	private String fundCode;

	/**
	 * 单位净值
	 */
	@Column(precision = 18 , scale = 4)
	private BigDecimal nav;

	/**
	 * 累计净值
	 */
	@Column(precision = 18 , scale = 4)
	private BigDecimal accumulatedNav;

	/**
	 * 日涨幅
	 */
	@Column(precision = 18 , scale = 4)
	private BigDecimal dayReturn;

	/**
	 * 万份收益
	 */
	@Column(precision = 18 , scale = 5)
	private BigDecimal unitYield;

	/**
	 * 七日年化收益率
	 */
	@Column(precision = 18 , scale = 5)
	private BigDecimal yearlyRoe;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getNavDate() {
		return navDate;
	}

	public void setNavDate(String navDate) {
		this.navDate = navDate;
	}

	public String getFundCode() {
		return fundCode;
	}

	public void setFundCode(String fundCode) {
		this.fundCode = fundCode;
	}

	public BigDecimal getNav() {
		return nav;
	}

	public void setNav(BigDecimal nav) {
		this.nav = nav;
	}

	public BigDecimal getAccumulatedNav() {
		return accumulatedNav;
	}

	public void setAccumulatedNav(BigDecimal accumulatedNav) {
		this.accumulatedNav = accumulatedNav;
	}

	public BigDecimal getDayReturn() {
		return dayReturn;
	}

	public void setDayReturn(BigDecimal dayReturn) {
		this.dayReturn = dayReturn;
	}

	public BigDecimal getUnitYield() {
		return unitYield;
	}

	public void setUnitYield(BigDecimal unitYield) {
		this.unitYield = unitYield;
	}

	public BigDecimal getYearlyRoe() {
		return yearlyRoe;
	}

	public void setYearlyRoe(BigDecimal yearlyRoe) {
		this.yearlyRoe = yearlyRoe;
	}

}
